<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui"
    xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition>
            <p:idleMonitor onactive="sessionTimeOutDialog.show();" timeout="#{session.maxInactiveInterval * 3000}"/>
            <p:dialog header="Notificación del Sistema" widgetVar="sessionTimeOutDialog"
             modal="true" closable="false" width="200" visible="false">
                 <h:outputText value="La sesión ha caducado." />
                 <input id="confirmBackToLogin" type="button" value="Aceptar" height="25"
                    onclick="window.location='#{facesContext.externalContext.requestContextPath}/faces/frmlogin.xhtml';" />
            </p:dialog>
     
    </ui:composition>
</html>